package com.xuecheng.base.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 分页查询的公共参数
 * @date 2024/12/15 15:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "分页查询基本参数")
public class PageParams {
    // 默认页码
    private static final Long DEFAULT_PAGE_CURRENT = 1L;
    // 默认每页记录数
    private static final Long DEFAULT_PAGE_SIZE = 10L;
    // 当前页码，默认值1，用Long是因为mybatis-plus分页参数用的Long
    @ApiModelProperty("当前页码，默认值1")
    private Long pageNo = DEFAULT_PAGE_CURRENT;
    // 每页记录数默认值，默认10
    @ApiModelProperty("每页记录数默认值，默认10")
    private Long pageSize = DEFAULT_PAGE_SIZE;
}
